<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/lottery_log_header}

	<div class="result-body">
		<div v-show="isLoading" style="margin:10%;">正在获取数据中...</div>
		<div v-show="!isLoading" class="result-con" style="min-width:initial;position:relative;display:none">
			<div v-show="polyline">
				<div id="LINE-CONTAINER" class="line-container"></div>
			</div>
			<table class="fc-blue" border="0" cellpadding="0" cellspacing="1">
				<thead>
					<tr>
						<th>期号</th>
						<th colspan="20">开奖号码</th>
						<th>大小</th>
						<th>单双</th>
						<th>上下</th>
						<th>奇偶</th>
						<th>总计</th>
					</tr>
				</thead>
				<tbody data-bind="foreach:list">
					<tr v-for="(item, idx) in list">
						<td>{{item.period}}</td>
						<td v-for="r in item.result.split(',')">{{r}}</td>
						<td><span class="fc-red">{{ bigSmall(item.result) }}</span></td>
						<td>{{ computedSum(item.result)%2===0?'双':'单' }}</td>
						<td><span class="fc-red">{{ upDown(item.result) }}</span></td>
						<td>{{ evenOdd(item.result) }}</td>
						<td><span class="fc-red">{{ computedSum(item.result) }}</span></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	
    <script id="th-template" type="text/html">
        <tr>
            <th v-if="isBottom" rowspan="2">期号</th>
            <th v-if="isBottom" v-bind:colspan="ballPos" rowspan="2" class="col-line">开奖号码</th>
            <template v-for="m in (ballPos+1)">
                <th v-for="n in ballCount" v-bind:class="{'col-line':n==ballCount && m!= ballPos+1}">{{n - 1 + start}}</th>
            </template>
        </tr>
    </script>

{template index/lottery_log_footer}